<?php
namespace app\teacher\controller;

use app\teacher\controller\PublicController;
use think\Db;
use app\teacher\model\AdminMenuModel;

//模板
class IndexController extends PublicController
{
    public function __construct(){
        parent::__construct();
        $this->check();
    }

    /**
     * 后台首页
     */
    public function index()
    {
        $adminMenuModel = new AdminMenuModel();
        $menus          = $adminMenuModel->menuTree();
        $this->assign("menus", $menus);
        $admin = Db::name("user")->where('id', cmf_get_current_admin_id())->find();
        $this->assign('admin', $admin);
        return $this->fetch('teacher@index/index');
    }
    public function show(){
        $this->fetch('teacher@index/show');
    }
    
	
	
}
